package com.situ.mall.service;

import java.util.List;

import javax.servlet.http.HttpSession;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.entity.Cart;

public interface ICartService {

	ServerResponse insert(Integer productId, Integer num, HttpSession session);

	List<Cart> selectByUserId(Integer id);

	ServerResponse deleteById(Integer cartId);

	ServerResponse updateQuantityByUserIdAndProductId(Integer productId, Integer num, HttpSession session);

	ServerResponse updateCheckStatusByUserIdAndProductId(Integer productId, Integer checked, HttpSession session);

}
